package com.hengx.cellview.cell;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.view.MotionEvent;
import com.hengx.cellview.CellView;

public abstract class Cell {

    private RectF rect = new RectF();

    public void setBounds(float x, float y, float endX, float endY) {
        this.rect.set(x, y, endX, endY);
    }

    public RectF getBounds() {
        return this.rect;
    }

    public abstract void draw(Paint paint, Canvas canvas, float scaleFactor);

    public boolean onTouch(CellView view, MotionEvent event) {
        return false;
    }
    
    public void init(CellView view) {
    }
    
    public void onSizeChanged(int width, int height) {
    }
    
}
